package com.scalar.chiptrack.operations.dataentry.inventoryTransit.forms;

import com.scalar.chiptrack.operations.dataentry.LotDetails;
import com.scalar.chiptrack.operations.dataentry.InTransitLots;
import com.scalar.chiptrack.ChipTrackActionForm;
import com.scalar.chiptrack.utils.AutoGrowingArrayList;

import java.util.ArrayList;

import org.apache.struts.action.ActionMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by IntelliJ IDEA.
 * User: ChandraSekhar
 * Date: Fed 06, 2008
 * Time: 12:28:08 PM
 */
public class InventoryTransitForm extends ChipTrackActionForm
{
    private String processType      = null;
    private String baseprocessType      = null;
    private int processStepId    = -1;
    private int locationId       = -1;
    private int dieQtyOut        = -1;
    private int lotId            = -1;

    ArrayList wipLotsList     = new AutoGrowingArrayList(LotDetails.class);
    ArrayList waferInfoList = new AutoGrowingArrayList(LotDetails.class);

    public int getProcessStepId() {
        return processStepId;
    }

    public void setProcessStepId(int processStepId) {
        this.processStepId = processStepId;
    }

    public int getLocationId() {
        return locationId;
    }

    public void setLocationId(int locationId) {
        this.locationId = locationId;
    }

    public String getProcessType() {
        return processType;
    }

    public void setProcessType(String processType) {
        this.processType = processType;
    }

    public String getBaseprocessType() {
        return baseprocessType;
    }

    public void setBaseprocessType(String baseprocessType) {
        this.baseprocessType = baseprocessType;
    }

    public ArrayList getWipLotsList() {
        return wipLotsList;
    }

    public void setWipLotsList(ArrayList wipLotsList) {
        this.wipLotsList = wipLotsList;
    }
    public ArrayList getWaferInfoList() {
        return waferInfoList;
    }

    public void setWaferInfoList(ArrayList waferInfoList) {
        this.waferInfoList = waferInfoList;
    }
        
    public int getDieQtyOut() {
        return dieQtyOut;
    }

    public void setDieQtyOut(int dieQtyOut) {
        this.dieQtyOut = dieQtyOut;
    }

    public int getLotId() {
        return lotId;
    }

    public void setLotId(int lotId) {
        this.lotId = lotId;
    }

    public void reset( ActionMapping mapping, HttpServletRequest request )
	{
        if ( wipLotsList != null )
        {
            int listSize = wipLotsList.size();
            for (int i = 0; i < listSize; i++)
            {
                LotDetails lotDetails = (LotDetails) wipLotsList.get(i);
                lotDetails.setChecked( false );
            }
        }
    }
}
